package com.zccx.eth.model.em;


/**
 * 删除状态
 */
public enum DeleteStatus {
    /**
     * 正常状态
     */
    NORMAL("normal"),
    /**
     * 已删除
     */
    DELETED("deleted");

    private String value;

    private DeleteStatus(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    /**
     * convert String type to AccountType
     *
     * @param value
     */
    public static DeleteStatus parse(String value) {
        DeleteStatus accountType = null;
        for (DeleteStatus obj : DeleteStatus.values()) {
            if (obj.getValue().equals(value)) {
                accountType = obj;
                break;
            }
        }
        return accountType;
    }
}
